Skip to content

Comments

Convert quality criteria from questions to statements#214

Merged
nhorton merged 3 commits intomainfrom
claude/quality-gate-timeout-notes-JlA6b
Feb 16, 2026
Merged

Convert quality criteria from questions to statements#214
nhorton merged 3 commits intomainfrom
claude/quality-gate-timeout-notes-JlA6b

Conversation

@nhorton
Copy link
Contributor

@nhorton nhorton commented Feb 16, 2026

Summary

This PR converts all quality criteria throughout the codebase from question format to statement format, describing the expected state after a step completes rather than asking whether that state was achieved.

Key Changes

Documentation and Examples

  • Updated job.yml files and templates to use statements instead of questions in quality_criteria

    • Example: "Does the job break out across logical steps..." → "The job breaks out across logical steps..."
    • Applied consistently across all quality criteria in standard jobs and examples
  • Updated instructional documentation in define.md, implement.md, iterate.md, learn.md, and fix_jobs.md to reflect the new statement-based format with examples

  • Updated best practices documentation in research_report_job_best_practices.md with statement-based criteria

Code Changes

  • quality_gate.py:

    • Added optional notes parameter to _build_payload() method to support author notes in review payloads
    • Updated build_review_instructions_file() to handle author notes separately from outputs
    • Increased base timeout from 120 seconds to 240 seconds (4 minutes) for review operations
    • Updated timeout calculation examples in docstring to reflect new base timeout
  • test_quality_gate.py:

    • Updated all timeout tests to reflect new 240-second base timeout
    • Updated test assertions and comments to match new timeout calculations

Templates

  • Updated job.yml.template to clarify that quality criteria should be statements of expected state, not questions

Implementation Details

  • The change maintains backward compatibility in the code while updating all user-facing documentation and examples
  • The timeout increase provides more time for reviewers to evaluate complex outputs
  • Author notes are now properly separated from output file contents in review payloads

https://claude.ai/code/session_01Jn2nuSQ3rUdhcr29s13K9T

claude and others added 3 commits February 16, 2026 16:43
…load

- Raise compute_timeout base from 120s to 240s (4 minutes) so the
  Claude quality reviewer has enough time to complete reviews.
- Pass agent notes into _build_payload so they appear in the user
  prompt alongside file contents during external (Claude CLI) reviews.
  Self-review mode already handles notes separately, so it is unchanged.

https://claude.ai/code/session_01Jn2nuSQ3rUdhcr29s13K9T
@nhorton nhorton enabled auto-merge February 16, 2026 17:03
@nhorton nhorton added this pull request to the merge queue Feb 16, 2026
Merged via the queue into main with commit 515bf13 Feb 16, 2026
4 checks passed
@nhorton nhorton deleted the claude/quality-gate-timeout-notes-JlA6b branch February 16, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants